package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 餐馆套餐对象 res_package
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
public class ResPackage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 套餐id */
    private Long packageId;

    /** 套餐名 */
    @Excel(name = "套餐名")
    private String packageName;

    /** 套餐图片 */
    @Excel(name = "套餐图片")
    private String imgUrl;

    /** 套餐单价 */
    @Excel(name = "套餐单价")
    private BigDecimal unitPrice;

    /** 套餐折扣 */
    @Excel(name = "套餐折扣")
    private BigDecimal discount;

    /** 套餐介绍 */
    @Excel(name = "套餐介绍")
    private String packageDesc;

    /** 销售量 */
    @Excel(name = "销售量")
    private Long salesVolume;

    /** 餐馆id */
    @Excel(name = "餐馆id")
    private Long resId;

    /** 有效期 */
    @Excel(name = "有效期")
    private String validPeriod;

    /** 套餐备用字段 */
    @Excel(name = "套餐备用字段")
    private String field;

    @Excel(name = "套餐所属餐馆")
    private ResInfo resInfo;

    public ResInfo getResInfo() {
        return resInfo;
    }

    public void setResInfo(ResInfo resInfo) {
        this.resInfo = resInfo;
    }

    public void setPackageId(Long packageId)
    {
        this.packageId = packageId;
    }

    public Long getPackageId() 
    {
        return packageId;
    }

    public void setPackageName(String packageName) 
    {
        this.packageName = packageName;
    }

    public String getPackageName() 
    {
        return packageName;
    }

    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }

    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }

    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }

    public void setPackageDesc(String packageDesc) 
    {
        this.packageDesc = packageDesc;
    }

    public String getPackageDesc() 
    {
        return packageDesc;
    }

    public void setSalesVolume(Long salesVolume) 
    {
        this.salesVolume = salesVolume;
    }

    public Long getSalesVolume() 
    {
        return salesVolume;
    }

    public void setResId(Long resId) 
    {
        this.resId = resId;
    }

    public Long getResId() 
    {
        return resId;
    }

    public void setValidPeriod(String validPeriod) 
    {
        this.validPeriod = validPeriod;
    }

    public String getValidPeriod() 
    {
        return validPeriod;
    }

    public void setField(String field) 
    {
        this.field = field;
    }

    public String getField() 
    {
        return field;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("packageId", getPackageId())
            .append("packageName", getPackageName())
            .append("imgUrl", getImgUrl())
            .append("unitPrice", getUnitPrice())
            .append("discount", getDiscount())
            .append("packageDesc", getPackageDesc())
            .append("salesVolume", getSalesVolume())
            .append("resId", getResId())
            .append("validPeriod", getValidPeriod())
            .append("field", getField())
            .append("resInfo", getResInfo())
            .toString();
    }
}
